﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Aliyun
{
    /// <summary>
    /// 行为验证码
    /// </summary>
    public interface IBehaviorCaptcha
    {
        /// <summary>
        /// 验证码校验
        /// </summary>
        /// <param name="captchaId"></param>
        /// <param name="data"></param>
        /// <returns></returns>
        FuncResult Verify(string captchaId, string data);
        /// <summary>
        /// 初始化验证码
        /// </summary>
        /// <param name="captcha"></param>
        /// <returns></returns>
        ICaptchaComponentResult Init(string captcha);
    }
}
